/*
** my_strcmp.c for my_strcmp in /home/morgan_t//afs/rendu/piscine/Jour_06
** 
** Made by thomas morgant
** Login   <morgan_t@epitech.net>
** 
** Started on  Tue Oct 12 15:24:24 2010 thomas morgant
** Last update Thu Apr 21 19:40:33 2011 thomas morgant
*/

/*int	my_strcmp(char *s1, char *s2)
{
  int	a;

  a = 0;
  while (s1[a] != '\0' && s2[a] != '\0')
    {
      if (s1[a] < s2[a])
	{
	  return (-1);
	}
      if (s1[a] > s2[a])
	{
	  return (1);
	}
      if (s1[a] == s2[a])
	{
	  return (0);
	}
      a++;
    }    
  return (0);
}
*/

int	my_strcmp(char *s1, char *s2)
{
  int	a;

  a = 0;
  while (s1[a] != '\0' && s2[a] != '\0')
    {
      if (s1[a] != s2[a])
      	return (s1 - s2);
      a++;
    }
  return (0);
}
